package com.hanxiaozhang.autocinfigure;

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * 〈一句话功能简述〉<br>
 * 〈自定义转换器自动注入〉
 *
 * @author hanxinghua
 * @create 2022/9/14
 * @since 1.0.0
 */
@Configuration
public class CustomConverterAutoConfigure {

    @Bean
    @Primary
    @ConfigurationPropertiesBinding
    public AsteriskMultiplyConverter multiplicationConverter(){
        return new AsteriskMultiplyConverter();
    }

}
